package com.inspur.gs.sbssdl.sbwhgl.sbrh.sbrh.back.bizactions;
import com.inspur.edp.bef.api.lcp.IStandardLcp;
import com.inspur.edp.bef.core.LcpUtil;
import com.inspur.edp.cef.api.message.*;
import com.inspur.edp.bef.api.action.determination.*;
import com.inspur.edp.bef.api.action.validation.*;
import com.inspur.edp.cef.entity.changeset.*;
import com.inspur.edp.bef.api.be.*;
import com.inspur.edp.bef.api.action.VoidActionResult;
import com.inspur.edp.bef.spi.action.AbstractManagerAction;
import java.util.ArrayList;

public class sbssSbrhBzActiveStandListMgrAction extends AbstractManagerAction<VoidActionResult> {
	private ArrayList<String> ids;
	private Boolean active;
	public sbssSbrhBzActiveStandListMgrAction(IBEManagerContext managerContext,
			ArrayList<String> ids, Boolean active) {
		super(managerContext);
		this.ids = ids;
		this.active = active;
	}

	private String rhsCfg = "com.inspur.gs.sbssdl.sbwhgl.sbrh.sbrh.back.sbssSbrhBz";

	@Override
	public  void execute() {
		IStandardLcp lcp = LcpUtil.getLcp(rhsCfg);
		for (String id : ids) {
			ModifyChangeDetail modify = new ModifyChangeDetail(id);
			modify.putItem("luActive",active);
			lcp.modify(modify);
		}
		lcp.save();
	}
	private IBusinessEntity getEntity(String dataId) {
		return (IBusinessEntity)super.getBEManagerContext().getEntity(dataId);
	}	private IBEService getMgr() {
		return (IBEService)super.getBEManagerContext().getBEManager();
	}
}